<%--
  Created by IntelliJ IDEA.
  User: Alper
  Date: Dec 25, 2010
  Time: 3:17:21 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>


<div id="c-col" align="center" >
  <div class="profile_top_wash">
    <div class="profile_color_bar vcard">
      <div id="pagelet_top_bar">
        <div id="c4cd706ade0e242e35533110">
          <div id="profile_top_bar" class="top_bar">
            <div class="profile_top_bar_container">
              <div class="tabs_wrapper clearfix">
                <ul id="profile_tabs" class="tabs">
                  <c:if test="${model.himself}">
                     <c:choose>
                        <c:when test='<%=request.getRequestURL().indexOf("homePage")>0%>'>
                            <li  class="selected" view="home"><a class="tab_link profile_tab" href="/bob-web/service/homePage.htm">Home</a></li>
					         <li class="profile" view="wall"><a class="tab_link profile_tab" href="/bob-web/service/profilePage.htm?wantedUserId=${model.user.userId}">Profile</a></li>
                             <li view="info"><a class="tab_link profile_tab" href="/bob-web/service/myInfo.htm">Info</a></li>
                            <li  class="publications" view="info"><a class="tab_link profile_tab" href="/bob-web/service/publications.htm">Publications</a></li>
                        </c:when>
                        <c:when test='<%=request.getRequestURL().indexOf("profilePage")>0%>'>
                            <li  class="home" view="home"><a class="tab_link profile_tab" href="/bob-web/service/homePage.htm">Home</a></li>
                            <li class="selected" view="wall"><a class="tab_link profile_tab" href="/bob-web/service/profilePage.htm?wantedUserId=${model.user.userId}">Profile</a></li>
                            <li view="info"><a class="tab_link profile_tab" href="/bob-web/service/myInfo.htm">Info</a></li>
                            <li  class="publications" view="info"><a class="tab_link profile_tab" href="/bob-web/service/publications.htm">Publications</a></li>

                        </c:when>
                        <c:when test='<%=request.getRequestURL().indexOf("myInfo")>0%>'>
                            <li  class="home" view="home"><a class="tab_link profile_tab" href="/bob-web/service/homePage.htm">Home</a></li>
                            <li class="profile" view="wall"><a class="tab_link profile_tab" href="/bob-web/service/profilePage.htm?wantedUserId=${model.user.userId}">Profile</a></li>
                            <li  class="selected" view="info"><a class="tab_link profile_tab" href="/bob-web/service/myInfo.htm">Info</a></li>
                            <li  class="publications" view="info"><a class="tab_link profile_tab" href="/bob-web/service/publications.htm">Publications</a></li>

                        </c:when>
                         <c:when test='<%=request.getRequestURL().indexOf("publications")>0%>'>
                             <li  class="home" view="home"><a class="tab_link profile_tab" href="/bob-web/service/homePage.htm">Home</a></li>
                             <li class="profile" view="wall"><a class="tab_link profile_tab" href="/bob-web/service/profilePage.htm?wantedUserId=${model.user.userId}">Profile</a></li>
                             <li  class="info" view="info"><a class="tab_link profile_tab" href="/bob-web/service/myInfo.htm">Info</a></li>
                             <li  class="selected" view="info"><a class="tab_link profile_tab" href="/bob-web/service/publications.htm">Publications</a></li>

                         </c:when>
                         <c:when test='<%=request.getRequestURL().indexOf("user_groups")>0%>'>
                             <li  class="home" view="home"><a class="tab_link profile_tab" href="/bob-web/service/homePage.htm">Home</a></li>
                             <li class="selected" view="user_groups"><a class="tab_link profile_tab" href="/bob-web/service/usergroups.htm">My Groups</a></li>
                             <li  class="add_group" view="add_group"><a class="tab_link profile_tab" href="/bob-web/service/addGroup.htm">Add Group</a></li>

                         </c:when>
                         <c:when test='<%=request.getRequestURL().indexOf("group.jsp")>0%>'>
                             <li  class="home" view="home"><a class="tab_link profile_tab" href="/bob-web/service/homePage.htm">Home</a></li>
                             <li class="selected" view="user_groups"><a class="tab_link profile_tab" href="/bob-web/service/group.htm?group_id=${model.group.groupId}">Groups</a></li>
                             <li  class="add_group" view="add_group"><a class="tab_link profile_tab" href="/bob-web/service/addGroup.htm">Add Group</a></li>

                         </c:when>
                         <c:when test='<%=request.getRequestURL().indexOf("addGroup")>0%>'>
                             <li  class="home" view="home"><a class="tab_link profile_tab" href="/bob-web/service/homePage.htm">Home</a></li>
                             <li class="user_groups" view="user_groups"><a class="tab_link profile_tab" href="/bob-web/service/usergroups.htm">My Groups</a></li>
                             <li  class="selected" view="add_group"><a class="tab_link profile_tab" href="/bob-web/service/addGroup.htm">Add Group</a></li>

                         </c:when>
                         <c:when test='<%=request.getRequestURL().indexOf("user_events")>0%>'>
                             <li  class="home" view="home"><a class="tab_link profile_tab" href="/bob-web/service/homePage.htm">Home</a></li>
                             <li class="selected" view="user_events"><a class="tab_link profile_tab" href="/bob-web/service/userevents.htm">My Events</a></li>
                             <li  class="add_event" view="add_event"><a class="tab_link profile_tab" href="/bob-web/service/addEvent.htm">Add Event</a></li>

                         </c:when>
                         <c:when test='<%=request.getRequestURL().indexOf("addEvent")>0%>'>
                             <li  class="home" view="home"><a class="tab_link profile_tab" href="/bob-web/service/homePage.htm">Home</a></li>
                             <li class="user_events" view="user_events"><a class="tab_link profile_tab" href="/bob-web/service/userevents.htm">My Events</a></li>
                             <li  class="selected" view="add_event"><a class="tab_link profile_tab" href="/bob-web/service/addEvent.htm">Add Event</a></li>

                         </c:when>
                         <c:when test='<%=request.getRequestURL().indexOf("event.jsp")>0%>'>
                             <li  class="home" view="home"><a class="tab_link profile_tab" href="/bob-web/service/homePage.htm">Home</a></li>
                             <li class="selected" view="events"><a class="tab_link profile_tab" href="/bob-web/service/event.htm?event_id=${model.event.eventId}">Events</a></li>
                             <li  class="add_event" view="add_event"><a class="tab_link profile_tab" href="/bob-web/service/addEvent.htm">Add Event</a></li>

                         </c:when>
                        <c:otherwise>
                            
                            <li  class="selected" view="home"><a class="tab_link profile_tab" href="/bob-web/service/homePage.htm">Home</a></li>
                            <li class="profile" view="wall"><a class="tab_link profile_tab" href="/bob-web/service/profilePage.htm?wantedUserId=${model.user.userId}">Profile</a></li>
                            <li class="info" view="info"><a class="tab_link profile_tab" href="/bob-web/service/myInfo.htm">Info</a></li>
                            <li  class="publications" view="info"><a class="tab_link profile_tab" href="/bob-web/service/publications.htm">Publications</a></li>

                        </c:otherwise>
                    </c:choose>
                  </c:if>
                  <c:if test="${!model.himself}">

                      <c:choose>
                         <c:when test='<%=request.getRequestURL().indexOf("homePage")>0%>'>
                             <li class="selected" view="home"><a class="tab_link profile_tab" href="/bob-web/service/homePage.htm">Home</a></li>
                             <li class="profile" view="wall"><a class="tab_link profile_tab" href="/bob-web/service/profilePage.htm?wantedUserId=${model.user.userId}">Profile</a></li>
                             <li view="info"><a class="tab_link profile_tab" href="/bob-web/service/myInfo.htm?wantedUserId=${model.user.userId}">Info</a></li>
                             <li  class="publications" view="info"><a class="tab_link profile_tab" href="/bob-web/service/publications.htm?wantedUserId=${model.user.userId}">Publications</a></li>
                         </c:when>
                         <c:when test='<%=request.getRequestURL().indexOf("profilePage")>0%>'>
                             <li class="home" view="home"><a class="tab_link profile_tab" href="/bob-web/service/homePage.htm">Home</a></li>
                             <li class="selected" view="wall"><a class="tab_link profile_tab" href="/bob-web/service/profilePage.htm?wantedUserId=${model.user.userId}">Profile</a></li>
                             <li view="info"><a class="tab_link profile_tab" href="/bob-web/service/myInfo.htm?wantedUserId=${model.user.userId}">Info</a></li>
                             <li  class="publications" view="info"><a class="tab_link profile_tab" href="/bob-web/service/publications.htm?wantedUserId=${model.user.userId}">Publications</a></li>

                         </c:when>
                         <c:when test='<%=request.getRequestURL().indexOf("myInfo")>0%>'>
                             <li class="home" view="home"><a class="tab_link profile_tab" href="/bob-web/service/homePage.htm">Home</a></li>
                             <li class="profile" view="wall"><a class="tab_link profile_tab" href="/bob-web/service/profilePage.htm?wantedUserId=${model.user.userId}">Profile</a></li>
                             <li  class="selected" view="info"><a class="tab_link profile_tab" href="/bob-web/service/myInfo.htm?wantedUserId=${model.user.userId}">Info</a></li>
                             <li  class="publications" view="info"><a class="tab_link profile_tab" href="/bob-web/service/publications.htm?wantedUserId=${model.user.userId}">Publications</a></li>

                         </c:when>
                          <c:when test='<%=request.getRequestURL().indexOf("publications")>0%>'>
                              <li class="home" view="home"><a class="tab_link profile_tab" href="/bob-web/service/homePage.htm">Home</a></li>
                              <li class="profile" view="wall"><a class="tab_link profile_tab" href="/bob-web/service/profilePage.htm?wantedUserId=${model.user.userId}">Profile</a></li>
                              <li  class="info" view="info"><a class="tab_link profile_tab" href="/bob-web/service/myInfo.htm?wantedUserId=${model.user.userId}">Info</a></li>
                              <li  class="selected" view="info"><a class="tab_link profile_tab" href="/bob-web/service/publications.htm?wantedUserId=${model.user.userId}">Publications</a></li>

                          </c:when>
                          <c:when test='<%=request.getRequestURL().indexOf("user_events")>0%>'>
                             <li  class="home" view="home"><a class="tab_link profile_tab" href="/bob-web/service/homePage.htm">Home</a></li>
                             <li class="selected" view="user_events"><a class="tab_link profile_tab" href="/bob-web/service/userevents.htm?wantedUserId=${model.user.userId}">Events Of ${model.user.name}</a></li>
                             <li  class="add_event" view="add_event"><a class="tab_link profile_tab" href="/bob-web/service/addEvent.htm">Add Event</a></li>

                         </c:when>
                         <c:when test='<%=request.getRequestURL().indexOf("user_groups")>0%>'>
                             <li  class="home" view="home"><a class="tab_link profile_tab" href="/bob-web/service/homePage.htm">Home</a></li>
                             <li class="selected" view="user_groups"><a class="tab_link profile_tab" href="/bob-web/service/usergroups.htm?wantedUserId=${model.user.userId}">Groups Of ${model.user.name}</a></li>
                             <li  class="add_group" view="add_group"><a class="tab_link profile_tab" href="/bob-web/service/addGroup.htm">Add Group</a></li>

                         </c:when>
                         <c:otherwise>
                             <li class="home" view="home"><a class="tab_link profile_tab" href="/bob-web/service/homePage.htm">Home</a></li>
                             <li class="profile" view="wall"><a class="tab_link profile_tab" href="/bob-web/service/profilePage.htm?wantedUserId=${model.user.userId}">Profile</a></li>
                             <li view="info"><a class="tab_link profile_tab" href="/bob-web/service/myInfo.htm?wantedUserId=${model.user.userId}">Info</a></li>
                             <li  class="publications" view="info"><a class="tab_link profile_tab" href="/bob-web/service/publications.htm?wantedUserId=${model.user.userId}">Publications</a></li>

                         </c:otherwise>
                     </c:choose>


                  </c:if>
                </ul>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

